package com.simple.cms.core.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author kin
 * @since 2017/8/10
 */
public class StatelessToken implements AuthenticationToken {
    private static final long serialVersionUID = -266605980808454259L;

    private String userName;

    private String token;

    public StatelessToken(String userName, String token) {
        this.userName = userName;
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return userName;
    }

    @Override
    public Object getCredentials() {
        return token;
    }


}
